import request from '@/utils/request'

// 查询企业排放填报列表
export function listCompanyFiling(query) {
  return request({
    url: '/system/companyFiling/list',
    method: 'get',
    params: query
  })
}

// 查询企业排放填报详细
export function getCompanyFiling(id) {
  return request({
    url: '/system/companyFiling/' + id,
    method: 'get'
  })
}

// 新增企业排放填报
export function addCompanyFiling(data) {
  return request({
    url: '/system/companyFiling',
    method: 'post',
    data: data
  })
}

// 修改企业排放填报
export function updateCompanyFiling(data) {
  return request({
    url: '/system/companyFiling',
    method: 'put',
    data: data
  })
}

// 删除企业排放填报
export function delCompanyFiling(id) {
  return request({
    url: '/system/companyFiling/' + id,
    method: 'delete'
  })
}
